Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Book Binder #3299

Closed
wants to merge 8 commits into from
Closed

Fix Book Binder #3299

wants to merge 8 commits into from

Conversation

svr333
Copy link
Member

@svr333 svr333 commented Oct 3, 2021

Description

Currently there is an issue with the Book Binder.
If you combine 2 books of the same level and the resulting level will go above the set limit (either vanilla or custom) the books will combine into one and keep their current level.

This fix makes it so that if a Fortune III gets combined with another Fortune III, it will not be combined into another Fortune III (granted there is no custom limit)
This has no effect for books with multiple enchantments as both books have the same level

Proposed changes

  • Fix books being consumed and returning their current value

Checklist

  • I have fully tested the proposed changes and promise that they will not break everything into chaos.
  • I have also tested the proposed changes in combination with various popular addons and can confirm my changes do not break them.
  • I followed the existing code standards and didn't mess up the formatting.
  • I did my best to add documentation to any public classes or methods I added.
  • I have added Nonnull and Nullable annotations to my methods to indicate their behaviour for null values
  • I added sufficient Unit Tests to cover my code.

@svr333 svr333 requested a review from a team as a code owner October 3, 2021 11:13
@TheBusyBiscuit TheBusyBiscuit added the ✨ Fix This Pull Request fixes an issue. label Oct 3, 2021
Sfiguz7
Sfiguz7 previously approved these changes Oct 5, 2021
Copy link
Member

@Sfiguz7 Sfiguz7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Sfiguz7 Sfiguz7 self-assigned this Oct 15, 2021
@WalshyDev WalshyDev added the hacktoberfest-accepted Manual override to accept a PR for Hacktoberfest label Oct 31, 2021
WalshyDev
WalshyDev previously approved these changes Nov 6, 2021
@svr333 svr333 mentioned this pull request Nov 7, 2021
Sfiguz7
Sfiguz7 previously approved these changes Nov 7, 2021
WalshyDev
WalshyDev previously approved these changes Nov 7, 2021
Copy link
Member

@WalshyDev WalshyDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-- testing --
do not merge

@svr333 svr333 requested a review from WalshyDev November 8, 2021 14:49
@svr333 svr333 removed the hacktoberfest-accepted Manual override to accept a PR for Hacktoberfest label Dec 7, 2021
@WalshyDev
Copy link
Member

Could you please cleanup the changelog?

@svr333
Copy link
Member Author

svr333 commented Jan 18, 2022

just remove the changelog changes?

@svr333
Copy link
Member Author

svr333 commented Jan 19, 2022

Sorry for the commit mess

Copy link
Contributor

@JustAHuman-xD JustAHuman-xD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JustAHuman-xD
Copy link
Contributor

Would someone want to test these changes again to be sure everything works as intended that way we don't have the mess that was the last enchantment related PR.

@J3fftw1
Copy link
Contributor

J3fftw1 commented Aug 5, 2023

Closing this in favour of #3925

@J3fftw1 J3fftw1 closed this Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Fix This Pull Request fixes an issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants